package com.nmgdz.bigdata.service.impl;

import com.nmgdz.bigdata.dao.UserDao;
import com.nmgdz.bigdata.entity.User;
import com.nmgdz.bigdata.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServicelmpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User save(User user) {
        return userDao.save(user);
    }

    @Override
    public User gueryById(int id) {
        return userDao.findById(id);
    }

    @Override
    public void deleUserById(int id) { userDao.deleteById(id); }
}



